package com.ruoyi.pcwl.domain;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import com.fasterxml.jackson.annotation.JsonIgnore;
import java.math.BigDecimal;
import java.util.Date;
import com.ruoyi.pcwl.utils.DateUtil;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;


/**
 * 主题旅游攻略表
 */

@ApiModel("主题旅游攻略表")
public class TravelGuides implements Serializable {


	/**
	 * 主题旅游攻略id
	 */

	@ApiModelProperty("主题旅游攻略id")
	@JsonSerialize(using= ToStringSerializer.class)
	private Long id;

	/**
	 * 主题旅游攻略名称
	 */

	@ApiModelProperty("主题旅游攻略名称")
	private String travelGuidesName;

	/**
	 * 主题旅游攻略详情
	 */

	@ApiModelProperty("主题旅游攻略详情")
	private String travelGuidesDetails;

	/**
	 * 分类ID
	 */

	@ApiModelProperty("分类ID")
	private Long categoryId;

	/**
	 * 分类名称
	 */

	@ApiModelProperty("分类名称")
	private String categoryName;

	/**
	 * 标签
	 */

	@ApiModelProperty("标签")
	private String tags;

	/**
	 * 热度
	 */

	@ApiModelProperty("热度")
	private Integer hot;

	/**
	 * 评分
	 */

	@ApiModelProperty("评分")
	private BigDecimal score;

	/**
	 * 创建时间
	 */

	@ApiModelProperty("创建时间")
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
	@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	private Date createDate;

	/**
	 * 修改时间
	 */

	@ApiModelProperty("修改时间")
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
	@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	private Date changeDate;

	/**
	 * 状态,1:正常，0:不展示
	 */

	@ApiModelProperty("状态,1:正常，0:不展示")
	private String status;

	/**
	 * 备注
	 */

	@ApiModelProperty("备注")
	private String remark;


	public void setId(Long id){
		this.id = id;
	}

	public Long getId(){
		return this.id;
	}

	public void setTravelGuidesName(String travelGuidesName){
		this.travelGuidesName = travelGuidesName;
	}

	public String getTravelGuidesName(){
		return this.travelGuidesName;
	}

	public void setTravelGuidesDetails(String travelGuidesDetails){
		this.travelGuidesDetails = travelGuidesDetails;
	}

	public String getTravelGuidesDetails(){
		return this.travelGuidesDetails;
	}

	public void setCategoryId(Long categoryId){
		this.categoryId = categoryId;
	}

	public Long getCategoryId(){
		return this.categoryId;
	}

	public void setCategoryName(String categoryName){
		this.categoryName = categoryName;
	}

	public String getCategoryName(){
		return this.categoryName;
	}

	public void setTags(String tags){
		this.tags = tags;
	}

	public String getTags(){
		return this.tags;
	}

	public void setHot(Integer hot){
		this.hot = hot;
	}

	public Integer getHot(){
		return this.hot;
	}

	public void setScore(BigDecimal score){
		this.score = score;
	}

	public BigDecimal getScore(){
		return this.score;
	}

	public void setCreateDate(Date createDate){
		this.createDate = createDate;
	}

	public Date getCreateDate(){
		return this.createDate;
	}

	public void setChangeDate(Date changeDate){
		this.changeDate = changeDate;
	}

	public Date getChangeDate(){
		return this.changeDate;
	}

	public void setStatus(String status){
		this.status = status;
	}

	public String getStatus(){
		return this.status;
	}

	public void setRemark(String remark){
		this.remark = remark;
	}

	public String getRemark(){
		return this.remark;
	}

	@Override
	public String toString (){
		return "主题旅游攻略id:"+(id == null ? "空" : id)+"，主题旅游攻略名称:"+(travelGuidesName == null ? "空" : travelGuidesName)+"，主题旅游攻略详情:"+(travelGuidesDetails == null ? "空" : travelGuidesDetails)+"，分类ID:"+(categoryId == null ? "空" : categoryId)+"，分类名称:"+(categoryName == null ? "空" : categoryName)+"，标签:"+(tags == null ? "空" : tags)+"，热度:"+(hot == null ? "空" : hot)+"，评分:"+(score == null ? "空" : score)+"，创建时间:"+(createDate == null ? "空" : DateUtil.formatDateTime2String(createDate))+"，修改时间:"+(changeDate == null ? "空" : DateUtil.formatDateTime2String(changeDate))+"，状态,1:正常，0:不展示:"+(status == null ? "空" : status)+"，备注:"+(remark == null ? "空" : remark);
	}
}
